/* 
 * File:   ImageCutter.h
 * Author: Guilherme Monteiro
 *
 */

#ifndef IMAGECUTTER_H
#define	IMAGECUTTER_H

#include <cv.h>

#include "InvalidRectException.h"

/**
 * Class that represents a cutter
 * of images.
 * 
 */
class ImageCutter {
public:
    ImageCutter(IplImage* imgPage, CvPoint leftU, CvPoint rightB);
    ImageCutter(const ImageCutter& orig);
    virtual ~ImageCutter();
    IplImage* cut() throw (InvalidRectException);
private:
    CvPoint ROILeftUpper;
    CvPoint ROIRightBottom;
    IplImage* pageImage;
};

#endif	/* IMAGECUTTER_H */

